<?php use app\admin\model\Role?>

<form style="padding: 15px;" class="layui-form" method="post" action="">
 <div class="layui-form-item">
  
    <label class="layui-form-label">手机号:</label>
    <div class="layui-inline" style="width:150px;">
     <input type="text" class="layui-input" value={$edit_user.mobile} name="mobile" placeholder="手机号" /> 
    
    </div>
     <div class="layui-inline" style="color:red;"><label  id="error_info" hidden></label></div>
  </div>
   <div class="layui-form-item">
  
    <label class="layui-form-label">级别:</label>
    <div class="layui-inline" style="width:150px;">
      	 <select name="role_id">
   		{foreach :Role::getAllRole() as $k=>$v}
 	
        <option value="{$v.id}"  {if $v.id==$edit_user.role_id}selected{/if}>{$v.role_name}</option>
    
      
  		{/foreach}
		</select>
    
    </div>
    
  </div>
  <div class="layui-form-item">

 <button class="layui-btn layui-input-block"  type="submit">提交</button>
</div>

</form>

<script>
layui.use('form', function(){
  var form = layui.form;

});

</script>
